- content_for :title, user.name

- if Errbit::Config.use_gravatar && gravatar = gravatar_url(user.email, :s => 86)
  - content_for :title_style do
    background: url('#{gravatar}') no-repeat;
    padding-left: 106px;

- content_for :action_bar do
  = render 'shared/link_github_account'
  %span= link_to('Add a New User', new_user_path, :class => 'add')
  = link_to 'edit', edit_user_path(user), :class => 'button'
  = link_to 'destroy', user_path(user), :method => :delete,
    :data => { :confirm => t('users.confirm_delete') }, :class => 'delete button'

%table.single_user
  %tr
    %th Email
    %td.main= user.email
  - if Errbit::Config.user_has_username
    %tr
      %th Username
      %td.main= user.username
  - if Errbit::Config.github_authentication && user.github_login.present?
    %tr
      %th GitHub Login
      %td.main= link_to user.github_login, "https://github.com/#{user.github_login}"
  %tr
    %th Admin?
    %td= user.admin? ? 'Y' : 'N'
  %tr
    %th Created
    %td= user.created_at.to_s(:micro)

